package cn.bdqn.sms.common.R;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author zhangpengxiang
 * @description 响应状态码
 * @date 2024/11/19
 */
@Getter
@AllArgsConstructor
public enum ResultCodeEnum {
    SUCCESS(200, "操作成功"),
    FAILURE(400, "操作失败"),
    UNAUTHORIZED(401, "未授权"),
    FORBIDDEN(403, "禁止访问"),
    NOT_FOUND(404, "资源未找到"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误");

    private final int code;
    private final String message;
}